import { createApp } from 'vue'
import { installConsoleInterceptor } from './lib/logger'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'
import './style.css'
import 'keen-slider/keen-slider.min.css'

// 安装全局日志拦截，使 console.* 走统一策略
installConsoleInterceptor()

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)

app.mount('#app')
